/*
|--------------------------------------------------------------------------
| db链接配置
|--------------------------------------------------------------------------
| 
|
*/
const Sequelize = require('sequelize');
exports.defaultConfig = {
  sequelize: {
    test: () => new Sequelize('test', 'root', 'xl123456', {
      host: '127.0.0.1',
      port: 3306,
      dialect: 'mysql'/* 选择 'mysql' | 'mariadb' | 'postgres' | 'mssql' 其一 */
    })
  },
  redis: {
    // 你可能会有多个redis
    test: {
      port: '6379',
      host: '127.0.0.1',
    }
  }

}
// 下面的特定环境可以深度合并到上面的默认环境
// 线上环境是上面的默认环境，不要乱改哦

// 开发环境配置
exports.development = {
  c: 12
}
// 测试环境配置
exports.testing = {}